Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬get wsGet(wdID,"New name","text")┬put it into namer┬get wsGet(wdID,"Type","Text")┬put last word of it into typer┬delete last char of typer -- the colon┬if typer="Category" then┬ put "CatListA" into t1┬ put "CatListL" into t2┬end if┬if typer="Detail" then┬ put "itemListA" into t1┬ put "itemListL" into t2┬end if┬if typer="Report" then┬ put "ReportList" into t1┬ put "ReportList" into t2 -- superfluous┬end if┬if (namer=empty) then┬ beep┬ alertNote("You forgot to select a name to edit.")┬else ┬ if checkQuality(namer,25)="fail" then┬ alertNote("Incorrect entry╤either too long or contains improper characters.")┬ wsSet wdID,"New name","Text",""┬ else┬ put item 1 of checkIfThere(namer,t1) into checker1┬ put item 1 of checkIfThere(namer,t2) into checker2┬ if (checker1="found") or (checker2="found") then┬ beep┬ alertNote("The "&typer&" name ╥"&namer&"╙ is already used."&return&return&"Please enter another.")┬ wsSet wdID,"New name","Text",""┬ else┬ wsSend wdID,0,"Close"┬ end if┬ end if┬end if┬--end mouseUp┬